﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VISS.API.Users;
using NCT.Framework;

namespace VISS.Web.Frontend.Modules.User.Profile
{
    public partial class ContactControl : System.Web.UI.UserControl
    {

        public bool IsEditContact { get; set; }
        public UserContactInfoEnt GeneralContact { get; set; }

        protected string Email = string.Empty;
        protected string HomePhone = string.Empty;
        protected string Mobile = string.Empty;
        protected string Address = string.Empty;
        protected const string NotHave = "Chưa cung cấp";
        protected string userKey = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (GeneralContact != null)
                {
                    Email = GeneralContact.Email;
                    HomePhone = GeneralContact.HomePhone;
                    Mobile = GeneralContact.MobiPhone;
                    Address = GeneralContact.Address;
                    IsEditContact = true;
                    userKey = ConvertUtils.ToString(Request.QueryString["key"]);
                }      
            }

        }
    }
}